package com.itheima.exerciseTest.test20_29;

import java.time.LocalDateTime;

public class Test20 {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        LocalDateTime of = LocalDateTime.of(2000,10,12,8,24,21);

        System.out.println("年 " + of.getYear());
        System.out.println("月 " + of.getMonthValue());
        System.out.println("日 " + of.getDayOfMonth());
        System.out.println("时 " + of.getHour());
        System.out.println("分 " + of.getMinute());
        System.out.println("秒 " + of.getSecond());
    }
}
